<template>
	<view class="content">
		<mp-html :content="content" />
	</view>
</template>

<script>
	import { setPrivacyAgreement } from '@/api/my.js'
	export default {
		data() {
			return {
				content: ''
			}
		},
		onLoad() {
			this.privacyAgreement()
		},
		methods: {
			privacyAgreement() {
				setPrivacyAgreement().then(res => {
					if (res.code === 1) {
						this.content = res.data
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.content {
		padding: 20rpx;
	}
</style>
